<template>
	<view class="hxxx-main" @click="closeDemo" id='informationDatalis'>
		<view class="hxxx-data">
			<view class="hxxx-title">
				详情
			</view>
			<view class="hxxx-list">
				<view class="hxxx-item" v-for="(val,inx) in content.rollOutDetailVoList" :key="inx">
					<span style="margin-right: 15rpx;">现金券：</span><span
						style="margin-right: 15rpx;">{{val.value}}元x</span><span>{{val.sumValue}}张</span>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		lotteryrolloutmergerecordingAuditData
	} from '@/api/init/api.js'
	export default {
		props: {
			mdata: {
				type: Object,
				required: true,
				default: {},
			}

		},
		data() {
			return {
				content: {

				},
				yzmid: ''
			}
		},
		created() {
			this.content = this.mdata
			console.log(this.mdata);
		},
		methods: {
			closeDemo(e) {
				if (e.target.id == 'informationDatalis') {
					this.$emit('change', false);
				}

			},
			yesconfg() {
				let that = this
				let data = {
					rollOutUserId: this.content.rollOutUserId,
					uniqueCode: this.yzmid,
					id: this.content.id,
					status: 1,
				}
				lotteryrolloutmergerecordingAuditData(data).then(res => {
					console.log(res);
					if (res.code == 0) {
						uni.showToast({
							title: '核销成功',
							//将值设置为 success 或者直接不用写icon这个参数
							icon: 'success',
							//显示持续时间为 2秒
							duration: 2000
						})
						that.$emit('change', false);
					}
				})
				console.log(this.content, this.yzmid);
			}
		}
	}
</script>

<style lang="scss" scoped>
	.hxxx-main {
		width: 100%;
		height: 100%;
		background-color: #0005;
		position: absolute;
		top: 0;
		right: 0;
		z-index: 2;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.hxxx-data {
		width: 80%;
		height: 40vh;
		background-color: #fff;
		display: flex;
		flex-direction: column;
		padding: 15rpx;
		box-sizing: border-box;

		.hxxx-title {
			font-size: 1.3rem;
		}

		.hxxx-item {
			margin: 22rpx 0;
			width: 100%;
			height: 100rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 1.1rem;
			font-weight: bolder;
			box-sizing: border-box;
			background-color: #dfdfdf;
			border-radius: 10rpx;
		}
	}

	.hxxx-list {
		width: 100%;
		height: 20vh;
		overflow-y: auto;
	}
</style>